Repository navigation
Support ~~~ fences in the fenced-code-blocks extra - #776
Open
jayhemnani9910 wants to merge 1 commit into
Open
jayhemnani9910 wants to merge 1 commit into
jayhemnani9910 wants to merge 1 commit into
Conversation
Only backtick fences were matched, so a ~~~ block rendered as a paragraph, and with the strike extra it came out struck through.
jayhemnani9910
force-pushed
the
fix/tilde-fenced-code-blocks
branch
from
November 12, 2026 08:47
3a031c5 to
c2ffb3c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
fenced-code-blocksextra only matches backtick fences, so a block fenced with~~~(CommonMark and GFM allow both, and Pandoc writes tildes) is not treated as code:The code ends up in a paragraph, and with
strikethe whole block is struck through.The opening fence now accepts three or more
~as well as backticks, the closing fence matches the same opener, andtest()also checks for~~~. Backticks inside a tilde block stay as code.Added
test/tm-cases/fenced_code_blocks_tilde, which fails before the change. The rest ofpython test.pygives the same results before and after (the existing knownfailure cases).